# 表格数据的处理
import csv

# 读
# with open('test.csv', mode='r', encoding='utf-8') as f:
#     resultF = csv.reader(f)
#     head = next(resultF)  # 除去表头
#     for i in resultF:
#         print(i, type(i))

# 写
with open('test.csv', mode='a', encoding='utf-8', newline='') as f:
    resultW = csv.writer(f)
    resultW.writerow(['王五', 'C语言', '89'])
    resultW.writerows([['zzz', 'zzz', '111'], ['xxx', 'xxx', '22']])
